package com.heima.user.controller;


import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dto.LoginDto;
import com.heima.user.service.ApUserService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * APP用户表(ApUser)表控制层
 *
 * @author makejava
 * @since 2022-04-20 16:03:47
 */
@RestController
@RequestMapping(path = "/api/v1/login")
public class ApUserController {
    /**
     * 服务对象
     */
    @Resource
    private ApUserService apUserService;

    /**
     * 用户登录接口
     *
     * @param dto
     * @return
     */
    @PostMapping(path = "/login_auth")
    public ResponseResult login(@RequestBody LoginDto dto) {
        return apUserService.login(dto);
    }


}

